package com.entrogy.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @ClassName CourseSystemCourseLimitEntity
 * @Description
 * @Author luoxingjiang
 * @Date 2019-11-22 上午 10:08
 * @Version 1.0
 **/
@SuppressWarnings("serial")
@AllArgsConstructor
@NoArgsConstructor
@Data
@Accessors(chain = true)
public class CourseSystemCourseLimitEntity {

    private Integer id;

    private Integer limitGradeId;

    private String createUserId;

    private Integer courseId;

    private String limitGradeName;

    @Override
    public boolean equals(Object obj) {
        CourseSystemCourseLimitEntity course = (CourseSystemCourseLimitEntity)obj;
        return this.id.equals(course.getId());
    }

    @Override
    public int hashCode() {
        return this.id.hashCode();
    }
}
